<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ name }}</div>
    <div class="title">我是scss样式</div>
    <div class="titles">
      <p v-border="color">
        <a href="#">我是a标签</a><br>
        <a href="#">我是a标签</a>
      </p>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  data() {
    return {
      color: 'blue'
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
$red:#ff6700;
$border: 10px solid red;
.title {
  color: $red;
  border: $border;
}
.titles{
  p{
    a{
      &:hover{
        color: blue;
      }
    }
  }
}
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
